package com.qf.ym.mapper;

import com.qf.ym.entity.RoleEntity;
import com.qf.ym.pojo.RolePojo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    //查询所有角色信息
    public List<RolePojo> queryRoles(RoleEntity re);
    //添加角色非权限信息
    public boolean addRole(RoleEntity re);
    //添加角色权限信息
    public boolean addRoleAuths(RoleEntity re);
    //修改角色非权限信息
    public boolean editRole(RoleEntity re);
    //删除角色权限信息
    public boolean deleteRoleAuths(RoleEntity re);
    //通过角色id查询角色信息
    public RolePojo queryRolesBid(@Param("rid") int rid);
}
